home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
C_QNA.ARJ
/
LPT2PRN.TC
< prev
next >
Wrap
Text File
|
1991-04-01
|
398b
|
17 lines
QUESTION: How can I send output to the second parallel port?
ANSWER: Open up a stream using a filename of "LPT2". Here's an
example:
/*------------------------- lpt2prn.c -----------------------*/
#include <stdio.h>
main()
{
FILE *lst2;
lst2 = fopen("LPT2", "w");
fprintf(lst2, "This will go through LPT2.\n");
fclose(lst2);
}